<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="./jsp/user/style/expind-std.css" rel="stylesheet"
	type="text/css" />
<link href="./jsp/user/style/expind.css" rel="stylesheet"
	type="text/css" />
<script language="javascript"
	src="./jsp/user/scripts/jquery-1.8.2.min.js"></script>
<script language="javascript" src="./jsp/user/scripts/expind.js"></script>
<title>Insert title here</title>
</head>
<body>
	<div class="container_24">

		<jsp:include page="header.jsp" />

		<div id="content" style="float: left;">
			<form action="create-project" method="post" enctype="multipart/form-data">
				<c:choose>
					<c:when test="${ empty createError }">

					</c:when>
					<c:otherwise>
						<div style="color: red;">
							<c:out value="${createError}"></c:out>
						</div>
						<br />
					</c:otherwise>
				</c:choose>
				<input type="hidden" value="0" name="numofactors"> <input
					type="hidden" value="0" name="numofcrews">
				<table>
					<tr>
						<td>Project Name</td>
						<td><input type="text" name="projectname" />*</td>
					</tr>
					<tr>
						<td>Description</td>
						<td><textarea rows="4" cols="50" name="description"></textarea>*
						</td>
					</tr>
					<tr>
						<td>Genre</td>
						<td><input type="text" name="genre" />*</td>
					</tr>

					<tr>
						<td>Poster</td>
						<td><input type="file" name="image" size="40" />
							&nbsp;or&nbsp; <input type="text" name="imageURL" /></td>
					</tr>
					<tr>
						<td><select id="titles">
								<c:forEach var="title" items="${titles}">
									<c:if test="${title.titleName ne 'director'}">
										<option value="${title.titleName}">${title.titleShowName}</option>
									</c:if>

								</c:forEach>

						</select></td>
						<td><input type="button" id="addtitle" value="Add Title" /></td>
					</tr>
				</table>
				<div id="wanted"></div>
				<input type="submit" value="Submit" />
			</form>
		</div>
	</div>
</body>
</html>